package appapi.Vo;

import appapi.entity.AppAmg.AnnexDtoImgDto;
import appapi.entity.AppAmg.AppOnsitedetailImgDto;
import appapi.entity.Zhongjiao.AnnexDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@ApiModel
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class AddOnsiteinspectionVo {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "巡检记录ID")
    private Long onsitId;
    @ApiModelProperty(value = "巡检设备",required = true)
    @NotNull(message = "巡检设备不能为空")
    private Integer equipId;

    @ApiModelProperty(value = "巡检项目",required = true)
    @NotNull(message = "巡检项目不能为空")
    private Integer itemId;

    @ApiModelProperty(value = "巡检要求",required = true)
    @NotNull(message = "巡检要求不能为空")
    private String itemRequire;
    @ApiModelProperty(value = "巡检人员",required = true)
    @NotNull(message = "巡检人员不能为空")
    private Integer operator;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "巡检日期")
    private Date onsiteDate;
    /**
     * 0-通过;1-未通过
     */
    @ApiModelProperty(value = "0-通过;1-未通过")
    private Integer onsiteResult;

    /**
     * 巡检描述
     */
    @ApiModelProperty(value = "巡检描述")
    private String onsiteNote;

    /**
     * 0-已处理;1-未处理
     */
    @ApiModelProperty(value = "0-已处理;1-未处理")
    private Integer auditState;

    /**
     * 处理时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private Date auditDate;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    /**
     * 操作人员
     */
    @ApiModelProperty(value = "操作人员",required = true)
    @NotNull(message = "操作人员不能为空")
    private Long staffId;

    private List<AppOnsitedetailImgDto> Onsitedetail;

    private List<AnnexDtoImgDto> annexes;
}
